<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      width: 200px; height: 200px;
      border: 1px solid green;
      overflow: scroll;
    }
    img{
      width: 100px;
      /*设置行内元素的垂直对齐方式
        vertical-align:top上对齐
        vertical-align:middle中对齐
        vertical-align:bottom下对齐
        vertical-align:baseline基线对齐默认的*/
      vertical-align: middle;
    }
  </style>
</head>
<body>
<input type="text"><img src="../day01/a.jpg" alt="">
<div>
  <img src="../day01/a.jpg" alt="">
</div>
</body>
</html>